package ch9;

import java.util.Scanner;

public class TeacherTest {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        try {
//            Teacher t=new Teacher();
            System.out.println("请输入老师的姓名：");
            String name=input.next();
            System.out.println("请输入老师的年龄：");
            int age=input.nextInt();
            System.out.println("请输入老师的学校：");
            String school = input.next();
            Teacher t=new Teacher(name,school,age);
//            t.setName(name);
//            t.setAge(age);
//            t.setSchool(school);
            t.introduction();
            t.attendClass();
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
